class GetHomeBuildingsModel {
  List<Data> data;
  int code;
  String msg;

  GetHomeBuildingsModel({this.data, this.code, this.msg});

  GetHomeBuildingsModel.fromJson(Map<String, dynamic> json) {
    if (json['data'] != null) {
      data = new List<Data>();
      json['data'].forEach((v) {
        data.add(new Data.fromJson(v));
      });
    }
    code = json['code'];
    msg = json['msg'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.data != null) {
      data['data'] = this.data.map((v) => v.toJson()).toList();
    }
    data['code'] = this.code;
    data['msg'] = this.msg;
    return data;
  }
}

class Data {
  String projectId;
  String projectName;
  String path;
  String httpPath;
  String address;
  String mainAreaMin;
  String mainAreaMax;
  String avgPrice;
  String avgPriceUnit;
  String saleStatusName;
  String buildingsStr;
  List<String> buildingsList;
  String tagsStr;
  List<String> tagsList;
  int num;
  Null delFlag;

  Data(
      {this.projectId,
      this.projectName,
      this.path,
      this.httpPath,
      this.address,
      this.mainAreaMin,
      this.mainAreaMax,
      this.avgPrice,
      this.avgPriceUnit,
      this.saleStatusName,
      this.buildingsStr,
      this.buildingsList,
      this.tagsStr,
      this.tagsList,
      this.num,
      this.delFlag});

  Data.fromJson(Map<String, dynamic> json) {
    projectId = json['projectId'];
    projectName = json['projectName'];
    path = json['path'];
    httpPath = json['httpPath'];
    address = json['address'];
    mainAreaMin = json['mainAreaMin'];
    mainAreaMax = json['mainAreaMax'];
    avgPrice = json['avgPrice'];
    avgPriceUnit = json['avgPriceUnit'];
    saleStatusName = json['saleStatusName'];
    buildingsStr = json['buildingsStr'];
    buildingsList = json['buildingsList'].cast<String>();
    tagsStr = json['tagsStr'];
    tagsList = json['tagsList'].cast<String>();
    num = json['num'];
    delFlag = json['delFlag'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['projectId'] = this.projectId;
    data['projectName'] = this.projectName;
    data['path'] = this.path;
    data['httpPath'] = this.httpPath;
    data['address'] = this.address;
    data['mainAreaMin'] = this.mainAreaMin;
    data['mainAreaMax'] = this.mainAreaMax;
    data['avgPrice'] = this.avgPrice;
    data['avgPriceUnit'] = this.avgPriceUnit;
    data['saleStatusName'] = this.saleStatusName;
    data['buildingsStr'] = this.buildingsStr;
    data['buildingsList'] = this.buildingsList;
    data['tagsStr'] = this.tagsStr;
    data['tagsList'] = this.tagsList;
    data['num'] = this.num;
    data['delFlag'] = this.delFlag;
    return data;
  }
}
